import { createRouter,createWebHashHistory } from "vue-router"

import master from "../pages/master.vue"

//主页链接
import masterHome from "../pages/master/home.vue"
import masterMusic from "../pages/master/music.vue" 
import musicHome from "../pages/master/music/home.vue"
import OriginalMusic from "../pages/master/music/OriginalMusic.vue"
import CoverSinging from "../pages/master/music/CoverSinging.vue"

import anime from "../pages/anime.vue"

//学习链接跳转
import learnShow from "../pages/learnShow.vue"
import learnGo from "../pages/learn/learnGo.vue"

//站长
import isMy from "../pages/learn/isMy.vue"
import isMyDefalut from "../pages/learn/my/myDefaultDetail.vue"
import isMyJava from "../pages/learn/my/myJavaDetail.vue"
import isMyGolang from "../pages/learn/my/myGolangDetail.vue"
import isMyC from "../pages/learn/my/myCDetail.vue"
import isMyCpp from "../pages/learn/my/myCPPDetail.vue"
import isMyFlutter from "../pages/learn/my/myFlutterDetail.vue"
import isMyXCX from "../pages/learn/my/myXCXDetail.vue"
import isMyHTML from "../pages/learn/my/myHTMLDetail.vue"
import isMyVue from "../pages/learn/my/myVueDetail.vue"
import isMyReact from "../pages/learn/my/myReactDetail.vue"
import isMyComput from "../pages/learn/my/myComputDetail.vue"

//站长(擅长领域的详细页面)
import xcxPage1 from "../pages/learn/my/xcx/xcxPage1.vue"
import xcxPage2 from "../pages/learn/my/xcx/xcxPage2.vue"
import xcxPage3 from "../pages/learn/my/xcx/xcxPage3.vue"
import goPage1 from "../pages/learn/my/go/goPage1.vue"
import goPage2 from "../pages/learn/my/go/goPage2.vue"
import goPage3 from "../pages/learn/my/go/goPage3.vue"
import flutterPage1 from "../pages/learn/my/flutter/flutterPage1.vue"
import flutterPage2 from "../pages/learn/my/flutter/flutterPage2.vue"
import flutterPage3 from "../pages/learn/my/flutter/flutterPage3.vue"

//番剧链接跳转
import animeShow from "../pages/animeShow.vue"
import animeAll from "../pages/animeAll.vue"
import animeGDYG from "../pages/anime/animeGDYG.vue"
import animeSTPG from "../pages/anime/animeSTPG.vue"
import animeMYGO from "../pages/anime/animeMYGO.vue"
import animeWDXFHY from "../pages/anime/animeWDXFHY.vue"
import animeYLS1 from "../pages/anime/animeYLS1.vue"
import animeLAYZSJZFH from "../pages/anime/animeLAYZSJZFH.vue"
import animeLOVELIVESUPERSTAR from "../pages/anime/animeLOVELIVESUPERSTAR.vue"
import animeZZJSFCKA from "../pages/anime/animeZZJSFCKA.vue"
import animeJBTXBFGW from "../pages/anime/animeJBTXBFGW.vue"
import animeSCZNDGMTX from "../pages/anime/animeSCZNDGMTX.vue"
import animeMQSS from "../pages/anime/animeMQSS.vue"
import animeBLZH from "../pages/anime/animeBLZH.vue"
import animeZSDFLL from "../pages/anime/animeZSDFLL.vue"
import animeYWSNDNN from "../pages/anime/animeYWSNDNN.vue"

//番剧详情链接
import animeDetail from "../pages/anime/animeDetail.vue"
import animeGDYGDetail from "../pages/anime/detail/animeGDYGDetail.vue"
import animeJBTXetail from "../pages/anime/detail/animeJBTXDetail.vue"

//(我的)页面链接
import mySpace from "../pages/my/mySpace.vue"
import myHome from "../pages/my/myHome.vue"
import accountHome from "../pages/my/home/accountHome.vue"
import accountSetting from "../pages/my/home/accountSetting.vue"
import accountImage from "../pages/my/home/accoutImage.vue"
import accountShow from "../pages/my/home/accountShow.vue"
import accountImageUpload from "../pages/my/home/accountImageUpload.vue"

//admin(管理员)可访问页面
import uploadMaster from "../pages/my/upload/uploadMaster.vue"
import uploadPage from "../pages/my/upload/uploadPage.vue"
import uploadPage2 from "../pages/my/upload/uploadPageTwo.vue"
import uploadPageVideo from "../pages/my/upload/uploadPageVideo.vue"
import uploadPageMusic from "../pages/my/upload/uploadPageMusic.vue"
import uploadPageVideo2 from "../pages/my/upload/uploadPageVideoTwo.vue"
import uploadPageMusic2 from "../pages/my/upload/uploadPageMusicTwo.vue"
import uploadPageSuccess from "../pages/my/upload/uploadPageSuccess.vue"

//主页跳转页面
//关于热门页
import Popular from "../pages/master/Popular.vue"
import PopularAll from "../pages/master/popular/PopularAll.vue"
import PopularMusic from "../pages/master/popular/PopularMusic.vue"

const routes = [
    {
        path:'/',
        component:master,
        children:[
            {path:'home',component:masterHome},
            {
                path:'music',
                component:masterMusic,
                children:[
                    {path:'home',component:musicHome},
                    {path:'original-music',component:OriginalMusic},
                    {path:'cover-singing',component:CoverSinging}
                ]
            },
        ]
    },
    {
        path: "/learn",
        component: learnShow,
        children: [
            {path: "go",component:learnGo},
            {
                path: "ismy",
                component:isMy,
                children: [
                    {path: 'init',component:isMyDefalut},
                    {path: 'java',component:isMyJava},
                    {
                        path: 'golang',
                        component:isMyGolang,
                        children: [
                            {path: 'go1',component:goPage1},
                            {path: 'go2',component:goPage2},
                            {path: 'go3',component:goPage2},
                        ]
                    },
                    {path: 'c',component:isMyC},
                    {path: 'cpp',component:isMyCpp},
                    {
                        path: 'flutter',
                        component: isMyFlutter,
                        children:[
                            {path:'flutter1',component:flutterPage1},
                            {path:'flutter2',component:flutterPage2},
                            {path:'flutter3',component:flutterPage3},
                        ]
                    },
                    {
                        path: 'xcx',component:isMyXCX,
                        children:[
                            {path:'xcx1',component:xcxPage1},
                            {path:'xcx2',component:xcxPage2},
                            {path:'xcx3',component:xcxPage3},
                        ]
                    },
                    {path: 'html',component:isMyHTML},
                    {path: 'vue',component:isMyVue},
                    {path: 'react',component:isMyReact},
                    {path: 'comput',component:isMyComput},
                ]
            }
        ]
    },
    {path:'/anime',component:anime},
    {path:'/anime-all',component:animeAll},
    {
        path:'/anime-player',
        component:animeShow,
        children: [
            {path: "gdyg/:fan",component:animeGDYG},
            {path: "stpgthgs/:fan",component:animeSTPG},
            {path: "mygo/:fan",component:animeMYGO},
            {path: "wdxfhy/:fan",component:animeWDXFHY},
            {path: "yls1/:fan",component:animeYLS1},
            {path: "layzsjzfh/:fan",component:animeLAYZSJZFH},
            {path: "zzjsfcka/:fan",component:animeZZJSFCKA},
            {path: "jbtxbfgw/:fan",component:animeJBTXBFGW},
            {path: "sczndgmtx/:fan",component:animeSCZNDGMTX},
            {path: "mqss/:fan",component:animeMQSS},
            {path: "lovelivesuperstar/:fan",component:animeLOVELIVESUPERSTAR},
            {path: "blzh/:fan",component:animeBLZH},
            {path: "zsdfll/:fan",component:animeZSDFLL},
            {path: "ywsndnn/:fan",component:animeYWSNDNN}
        ]
    },
    {
        path: "/anime-detail",
        component: animeDetail,
        children: [
            {path: "gdyg",component:animeGDYGDetail},
            {path: "jbtx",component:animeJBTXetail}
        ]
    },
    {path: '/my',component:mySpace},
    {
        path: '/account',
        component:myHome,
        children: [
            {path: 'home',component:accountHome},
            {path: 'setting',component:accountSetting},
            {
                path: 'face',
                component:accountShow,
                children: [
                    {path:'vip',component:accountImage},
                    {path:'upload',component:accountImageUpload}
                ]
            },
        ]
    },
    {
        path: '/admin-upload',
        component:uploadMaster,
        children:[
            {path: 'admin-upload-page',component:uploadPage2},
            {path:'admin-upload-page-video',component:uploadPageVideo2},
            {path:'admin-upload-page-music',component:uploadPageMusic2},
            {path:'admin-upload-page-success',component:uploadPageSuccess},
        ]
    },
    {path: '/admin-upload-page',component:uploadPage},
    {path:'/admin-upload-page-video',component:uploadPageVideo},
    {path:'/admin-upload-page-music',component:uploadPageMusic},
    {
        path:'/popular',
        component:Popular,
        children:[
            {path: 'all',component:PopularAll},
            {path: 'music',component:PopularMusic},
        ]
    }
]

export const router = createRouter({
    routes,
    history: createWebHashHistory(),
})
